#include "args.hpp"

shared_ptr<cmdline::parser> get_parser()
{
	static shared_ptr<cmdline::parser> parser{new cmdline::parser()};
	return parser;
}

void init_parser(int argc, char *argv[])
{
	auto parser = get_parser();
	parser->add<string>("manifest", 'm', "used manifest json file", false, "manifest.json");
	parser->add<string>("repo_dir", 'o', "cloned repo directory", false, "repos");
	parser->set_program_name("repo-json");

	parser->parse_check(argc, argv);
}
